import styled from 'styled-components'

export const TopBannerWrapper = styled.div`
  height: 285px;
  &:hover .content .btn {
    opacity: 1;
  }
  .content {
    width: 984px;
    height: inherit;
    margin: 0 auto;
    display: flex;
    position: relative;
    .banner {
      width: 730px;
      height: inherit;

      .carousel_item {
        cursor: pointer;
        .image {
          width: 100%;
          height: 285px;
        }
      }
    }
    .download {
      width: 254px;
      height: 285px;
      cursor: pointer;
      background: url(${require('@/assets/img/download.png')});
    }
    .btn {
      width: 37px;
      height: 63px;
      position: absolute;
      top: 50%;
      opacity: 0;
      transition: all .5s;
      background-image: url(${require('@/assets/img/banner_sprite.png')});
      background-color: transparent;
      cursor: pointer;
      &:hover {
        background-color: rgba(0, 0, 0, 0.1);
      }
    }
    .left {
      left: -68px;
      background-position: 0 -360px;
    }
    .right {
      right: -68px;
      background-position: 0 -508px;
    }
  }
`
